namespace CRM.DataAccess.Entities
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("LEADS")]
    public partial class LEAD
    {
        public long ID { get; set; }

        public bool DELETED { get; set; }

        public long? CREATED_BY { get; set; }

        public DateTime DATE_ENTERED { get; set; }

        public long? MODIFIED_USER_ID { get; set; }

        public DateTime DATE_MODIFIED { get; set; }

        public DateTime? DATE_MODIFIED_UTC { get; set; }

        public long? ASSIGNED_USER_ID { get; set; }

        public long? TEAM_ID { get; set; }

        public bool CONVERTED { get; set; }

        [StringLength(25)]
        public string SALUTATION { get; set; }

        [StringLength(100)]
        public string FIRST_NAME { get; set; }

        [StringLength(100)]
        public string LAST_NAME { get; set; }

        [StringLength(100)]
        public string TITLE { get; set; }

        [StringLength(100)]
        public string REFERED_BY { get; set; }

        [StringLength(100)]
        public string LEAD_SOURCE { get; set; }

        public string LEAD_SOURCE_DESCRIPTION { get; set; }

        [StringLength(100)]
        public string STATUS { get; set; }

        public string STATUS_DESCRIPTION { get; set; }

        [StringLength(100)]
        public string DEPARTMENT { get; set; }

        public long? REPORTS_TO_ID { get; set; }

        public DateTime? BIRTHDATE { get; set; }

        public bool? DO_NOT_CALL { get; set; }

        [StringLength(25)]
        public string PHONE_HOME { get; set; }

        [StringLength(25)]
        public string PHONE_MOBILE { get; set; }

        [StringLength(25)]
        public string PHONE_WORK { get; set; }

        [StringLength(25)]
        public string PHONE_OTHER { get; set; }

        [StringLength(25)]
        public string PHONE_FAX { get; set; }

        [StringLength(100)]
        public string EMAIL1 { get; set; }

        [StringLength(100)]
        public string EMAIL2 { get; set; }

        [StringLength(75)]
        public string ASSISTANT { get; set; }

        [StringLength(25)]
        public string ASSISTANT_PHONE { get; set; }

        [StringLength(255)]
        public string WEBSITE { get; set; }

        public bool? EMAIL_OPT_OUT { get; set; }

        public bool? INVALID_EMAIL { get; set; }

        [StringLength(25)]
        public string SMS_OPT_IN { get; set; }

        [StringLength(20)]
        public string TWITTER_SCREEN_NAME { get; set; }

        [StringLength(150)]
        public string PRIMARY_ADDRESS_STREET { get; set; }

        [StringLength(100)]
        public string PRIMARY_ADDRESS_CITY { get; set; }

        [StringLength(100)]
        public string PRIMARY_ADDRESS_STATE { get; set; }

        [StringLength(20)]
        public string PRIMARY_ADDRESS_POSTALCODE { get; set; }

        [StringLength(100)]
        public string PRIMARY_ADDRESS_COUNTRY { get; set; }

        [StringLength(150)]
        public string ALT_ADDRESS_STREET { get; set; }

        [StringLength(100)]
        public string ALT_ADDRESS_CITY { get; set; }

        [StringLength(100)]
        public string ALT_ADDRESS_STATE { get; set; }

        [StringLength(20)]
        public string ALT_ADDRESS_POSTALCODE { get; set; }

        [StringLength(100)]
        public string ALT_ADDRESS_COUNTRY { get; set; }

        public string DESCRIPTION { get; set; }

        [StringLength(150)]
        public string ACCOUNT_NAME { get; set; }

        public string ACCOUNT_DESCRIPTION { get; set; }

        public long? CONTACT_ID { get; set; }

        public long? ACCOUNT_ID { get; set; }

        public long? OPPORTUNITY_ID { get; set; }

        [StringLength(255)]
        public string OPPORTUNITY_NAME { get; set; }

        [StringLength(50)]
        public string OPPORTUNITY_AMOUNT { get; set; }

        [StringLength(255)]
        public string PORTAL_NAME { get; set; }

        [StringLength(255)]
        public string PORTAL_APP { get; set; }

        public long? CAMPAIGN_ID { get; set; }

        public long? TEAM_SET_ID { get; set; }
    }
}
